package com.orange.audio.sound;

import java.io.File;
import java.io.IOException;

import com.orange.util.file.IFileManage;

/**
 * (c) OrangeGame 2012 
 * 
 * 
 * @author OrangeGame <OGEngine@orangegame.cn>
 */
public interface ISoundFactory {
	// ===========================================================
	// Constants
	// ===========================================================

	// ===========================================================
	// Fields
	// ===========================================================

	// ===========================================================
	// Constructors
	// ===========================================================

	// ===========================================================
	// Getter & Setter
	// ===========================================================

	/**
	 * @param pAssetBasePath must end with '<code>/</code>' or have <code>.length() == 0</code>.
	 */
	public void setAssetBasePath(final String pAssetBasePath);

	public String getAssetBasePath();

	public void onCreate();

	// ===========================================================
	// Methods for/from SuperClass/Interfaces
	// ===========================================================

	// ===========================================================
	// Methods
	// ===========================================================

	public ISound createSoundFromPath(final ISoundManager pSoundManager, final String pPath);

	public ISound createSoundFromAsset(final ISoundManager pSoundManager, final IFileManage FileManage, final String pAssetPath) throws IOException;

	public ISound createSoundFromFile(final ISoundManager pSoundManager, final File pFile);
	
	// ===========================================================
	// Inner and Anonymous Classes
	// ===========================================================
}
